package com.zking.ssm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zking.ssm.model.File;
import com.zking.ssm.service.FileService;
import com.zking.ssm.mapper.FileMapper;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author Duan
* @description 针对表【t_file】的数据库操作Service实现
* @createDate 2021-11-25 15:31:20
*/
@Service
public class FileServiceImpl extends ServiceImpl<FileMapper, File>
    implements FileService{

    @Resource
    private FileMapper FileMapper;

    @Override
    public int insertSelective(File file) {
        int i = FileMapper.insertSelective(file);
        return i;
    }

    @Override
    public File selectOneByFileId(String fileId) {
        File file = FileMapper.selectOneByFileId(fileId);
        return file;
    }
}




